'''
Created on 03/07/2010

@author: Mar
'''


class Filez(object): 
    
    
    def __init__ (self):
        self.name = "MyFile"
        self.size = 0 
        self.location = "" 
        self.data = None
        
        
    def setName (self,aName):
        self.name = aName
        
    def getName(self):
        return self.name
    
    def toString(self):
        return self.name
    
    def setLocation(self,anInode):
        self.location= anInode
        
    def setData(self,aString):
        self.data = aString
        
    def getData(self):
        return self.data
    
    def getParcialData(self,ini,end):
        return self.data[ini:end]
    
    
    def setSize(self):
        self.size = len(self.data)
        
    def getSize(self):
        self.setSize()
        return self.size
    
     